<template>
  <div class="container">
    <OutPdf v-if="type === 1"></OutPdf>
    <A4Index v-if="type === 2"></A4Index>
    <A4Index2 v-if="type === 3"></A4Index2>
    <div class="btn-group">
      <el-button type="primary" @click="type = 1">常规导出测试</el-button>
      <el-button type="primary" @click="type = 2">A4标准页边距测试</el-button>
      <el-button type="primary" @click="type = 3"
        >A4标准页边距和套红头测试</el-button
      >
    </div>
  </div>
</template>

<script>
import OutPdf from "./index.vue";
import A4Index from "./A4Page/A4Index.vue";
import A4Index2 from "./A4Page/A4Index2.vue";
export default {
  name: "home",
  components: {
    OutPdf,
    A4Index,
    A4Index2,
  },
  data() {
    return {
      type: 1,
    };
  },
};
</script>

<style lang="less">
.container {
  background: #f0f2f5;
}
</style>
